Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that neighbours function may return -1 #220

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

lpsinger
Copy link
Contributor

@lpsinger lpsinger commented Jul 18, 2024

Some HEALPix pixels do not have all 8 neighbours. In these cases, the corresponding entry in the returned array has the value of -1 and Numpy may print an invalid value warning. To suppress the warning, use numpy.errstate.

Fixes #217.

Some HEALPix pixels do not have all 8 neighbours. In these cases,
the corresponding entry in the returned array has the value of -1
and Numpy may print an invalid value warning. To suppress the
warning, use `numpy.errstate`.

Fixes astropy#217.
Copy link

codecov bot commented Jul 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.22%. Comparing base (6d68e8d) to head (ab60316).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
- Coverage   88.29%   88.22%   -0.08%     
==========================================
  Files           6        6              
  Lines         504      501       -3     
==========================================
- Hits          445      442       -3     
  Misses         59       59              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pllim
Copy link
Member

pllim commented Jul 18, 2024

Thanks!

@pllim pllim merged commit 9518776 into astropy:main Jul 18, 2024
10 of 11 checks passed
@lpsinger lpsinger deleted the neighbours-invalid branch July 18, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: neighbours() produces warnings for many cases
2 participants